import router from '@/router/index'

// 全局前置守卫
router.beforeEach(async (to, from, next) => {
    console.log('全局前置守卫 >>>>')

    // 设置页面标题
    let title = (to.meta.title ? to.meta.title : '') + ' - 航班信息演示'
    document.title = title
    next()
})

